package cn.besbing.server.service.primary;

import cn.besbing.model.entities.primary.RejectProcessBlob;
import cn.besbing.model.entities.primary.RejectProcessBlobExample;
import cn.besbing.model.mapper.primary.RejectProcessBlobMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RejectProcessBlobServiceImpl implements RejectProcessBlobMapper {
    @Override
    public long countByExample(RejectProcessBlobExample example) {
        return countByExample(example);
    }

    @Override
    public int deleteByExample(RejectProcessBlobExample example) {
        return deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String pkProcessBlob) {
        return deleteByPrimaryKey(pkProcessBlob);
    }

    @Override
    public int insert(RejectProcessBlob record) {
        return insert(record);
    }

    @Override
    public int insertSelective(RejectProcessBlob record) {
        return insertSelective(record);
    }

    @Override
    public List<RejectProcessBlob> selectByExampleWithBLOBs(RejectProcessBlobExample example) {
        return selectByExampleWithBLOBs(example);
    }

    @Override
    public List<RejectProcessBlob> selectByExample(RejectProcessBlobExample example) {
        return selectByExample(example);
    }

    @Override
    public RejectProcessBlob selectByPrimaryKey(String pkProcessBlob) {
        return selectByPrimaryKey(pkProcessBlob);
    }

    @Override
    public int updateByExampleSelective(RejectProcessBlob record, RejectProcessBlobExample example) {
        return updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExampleWithBLOBs(RejectProcessBlob record, RejectProcessBlobExample example) {
        return updateByExampleWithBLOBs(record, example);
    }

    @Override
    public int updateByExample(RejectProcessBlob record, RejectProcessBlobExample example) {
        return updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(RejectProcessBlob record) {
        return updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(RejectProcessBlob record) {
        return updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(RejectProcessBlob record) {
        return updateByPrimaryKey(record);
    }

    public List<RejectProcessBlob> selectRecordByDetailPk(String pkProcessDetail) {
        if (pkProcessDetail == null)
            pkProcessDetail = "-";
        RejectProcessBlobExample blobExample = new RejectProcessBlobExample();
        RejectProcessBlobExample.Criteria criteria = blobExample.createCriteria();
        criteria.andPkProcessDetailEqualTo(pkProcessDetail);
        return selectByExampleWithBLOBs(blobExample);
    }
}
